package com.imc.beans;

import java.util.Date;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * ImcOfflineFile entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "imc_offline_file", catalog = "imcdbserver")
public class ImcOfflineFile implements java.io.Serializable {

	// Fields

	private long fileId;
	private Integer fileSendUid;
	private String fileRemoteName;
	private String fileLocalName;
	private Integer fileSize;
	private Integer fileOffsetSize;
	private String fileMd5;
	private Date fileSendDate;
	private Integer fileRecvCount;
	private Integer fileDownloadCount;
	private Integer fileState;
	private String msgGuid;

	// Constructors

	/** default constructor */
	public ImcOfflineFile() {
	}

	/** full constructor */
	public ImcOfflineFile(Integer fileSendUid, String fileRemoteName,
			String fileLocalName, Integer fileSize, Integer fileOffsetSize,
			String fileMd5, Date fileSendDate, Integer fileRecvCount,
			Integer fileDownloadCount, Integer fileState, String msgGuid) {
		this.fileSendUid = fileSendUid;
		this.fileRemoteName = fileRemoteName;
		this.fileLocalName = fileLocalName;
		this.fileSize = fileSize;
		this.fileOffsetSize = fileOffsetSize;
		this.fileMd5 = fileMd5;
		this.fileSendDate = fileSendDate;
		this.fileRecvCount = fileRecvCount;
		this.fileDownloadCount = fileDownloadCount;
		this.fileState = fileState;
		this.msgGuid = msgGuid;
	}

	// Property accessors
	@Id
	@GeneratedValue
	@Column(name = "file_id", unique = true, nullable = false)
	public long getFileId() {
		return this.fileId;
	}

	public void setFileId(long fileId) {
		this.fileId = fileId;
	}

	@Column(name = "file_send_uid")
	public Integer getFileSendUid() {
		return this.fileSendUid;
	}

	public void setFileSendUid(Integer fileSendUid) {
		this.fileSendUid = fileSendUid;
	}

	@Column(name = "file_remote_name", length = 200)
	public String getFileRemoteName() {
		return this.fileRemoteName;
	}

	public void setFileRemoteName(String fileRemoteName) {
		this.fileRemoteName = fileRemoteName;
	}

	@Column(name = "file_local_name", length = 200)
	public String getFileLocalName() {
		return this.fileLocalName;
	}

	public void setFileLocalName(String fileLocalName) {
		this.fileLocalName = fileLocalName;
	}

	@Column(name = "file_size")
	public Integer getFileSize() {
		return this.fileSize;
	}

	public void setFileSize(Integer fileSize) {
		this.fileSize = fileSize;
	}

	@Column(name = "file_offset_size")
	public Integer getFileOffsetSize() {
		return this.fileOffsetSize;
	}

	public void setFileOffsetSize(Integer fileOffsetSize) {
		this.fileOffsetSize = fileOffsetSize;
	}

	@Column(name = "file_md5", length = 32)
	public String getFileMd5() {
		return this.fileMd5;
	}

	public void setFileMd5(String fileMd5) {
		this.fileMd5 = fileMd5;
	}

	@Column(name = "file_send_date", length = 19)
	public Date getFileSendDate() {
		return this.fileSendDate;
	}

	public void setFileSendDate(Date fileSendDate) {
		this.fileSendDate = fileSendDate;
	}

	@Column(name = "file_recv_count")
	public Integer getFileRecvCount() {
		return this.fileRecvCount;
	}

	public void setFileRecvCount(Integer fileRecvCount) {
		this.fileRecvCount = fileRecvCount;
	}

	@Column(name = "file_download_count")
	public Integer getFileDownloadCount() {
		return this.fileDownloadCount;
	}

	public void setFileDownloadCount(Integer fileDownloadCount) {
		this.fileDownloadCount = fileDownloadCount;
	}

	@Column(name = "file_state")
	public Integer getFileState() {
		return this.fileState;
	}

	public void setFileState(Integer fileState) {
		this.fileState = fileState;
	}

	@Column(name = "msg_guid", length = 20)
	public String getMsgGuid() {
		return this.msgGuid;
	}

	public void setMsgGuid(String msgGuid) {
		this.msgGuid = msgGuid;
	}

}